<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <!-- Mobile Devices Support @begin -->

    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <meta content="telephone=no, address=no" name="format-detection">
    <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0,maximum-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes"> <!-- apple devices fullscreen -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <!-- Mobile Devices Support @end -->
    <title>极速贷</title>

    <link rel="stylesheet" href="__PUBLIC__/common.css"  type="text/css">
    <link rel="stylesheet" href="__PUBLIC__/proshare.css"  type="text/css">
    <!--<script type="text/javascript" src="jquery-1.10.2.min.js" ></script>-->
    <script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/qdcommon.js" ></script>
    <script type="text/javascript" src="__PUBLIC__/qdfunc.js" ></script>

</head>
<body class="reg_body">
<div class="main">
    <div class="reg_headiv">
        <img src="__PUBLIC__/head1.png"  class="reg_headimg">
    </div>

    <div class="reg_tipdiv">
        <div class="reg_tipnewuser">
        </div>
    </div>

    <div class="reg_contentdiv">
        <form id="am-form" class="am-form" action="" method="post" accept-charset="UTF-8">
            <span id="tip" style="display:none;"></span>
            {:token()}
            <input type="hidden" name="info[platform]" value="{:input('auser','')}" />
            <div class="reg_info reg_telinfo">
                <input type="text" name="info[username]" id="name" class="reg_inputtext reg_longinputtext2" placeholder="请填写姓名">
            </div>

            <div class="reg_info reg_telinfo">
                <input type="password" name="info[password]" id="password" class="reg_inputtext reg_longinputtext2" placeholder="请填写密码">
            </div>

            <div class="reg_info">
                <input type="number" name="info[qq]" id="qq" class="reg_inputtext reg_longinputtext2" placeholder="请填写QQ号">
            </div>

            <div class="reg_info">
                <input type="text" name="info[weixin]" id="weixin" class="reg_inputtext reg_longinputtext2" placeholder="请填写微信号">
            </div>

            <div class="reg_info">
                <input type="number" name="info[zhimafen]" id="zhimafen" class="reg_inputtext reg_longinputtext2" placeholder="请填写芝麻分">
            </div>

            <div class="reg_info ">
                <input type="tel" name="info[tel]" id="phoneNumber" class="reg_inputtext reg_longinputtext" placeholder="请填写手机号码" value="">
            </div>


            <div class="reg_info">
                <input type="text" name="info[dxyzm]" id="dxyzm" class="reg_inputtext reg_longinputtext2" placeholder="请填写手机验证码">
                <button type="button" onclick="getcode()" style="padding: 10px 35px;border-radius: 5px;border: 0;background: #efd765;color: #fff;">获取验证码</button>
            </div>

            <div class="reg_info">
                <input type="text" name="info[tpyzm]" id="tpyzm" class="reg_inputtext reg_longinputtext2" placeholder="请填写图形验证码" required>
                <img src="{:url('/index/Register/yzm')}" id="verify_img" alt="captcha" style="vertical-align: middle;" onclick="refreshVerify()" />
            </div>

            <a href="javascript:void(0);" id="submitlink" onClick="dosubmit1();">
                <div class="submitbtn submitbtn_normal" id="submitdiv">
                    <span id="submitbtn">提交认证</span>
                </div>
            </a>

            <div class="submitbtn_new">
            </div>


        </form>
    </div>



    <!-- begin 弹框页面 -->
    <div class="bg" id="bg"></div>
    <div class="showremind">
        <div class="remindinfo">
            <div class="remindtext">
                <span></span>
            </div>
        </div>
        <a href="javascript:void(0);" onClick="hideTip(1);" id="surebtn">
            <div class="remindok">
                <span>确定</span>
            </div>
        </a>
    </div>
    <!-- end 弹框页面 -->

</div>

<script type="text/javascript">

    function refreshVerify() {
        var ts = Date.parse(new Date())/1000;
        $('#verify_img').attr("src", "{:url('yzm')}?"+ts);
    }

    function getcode() {
        var tel = $('#phoneNumber').val();
        tel = trimStr(tel);
        if(tel.length!=11)
        {
            showTip('请输入有效的手机号码！');
            return false;
        }
        if(tel == '')
        {
            showTip('请填写手机号');
            return false;
        }

        var tpyzm = $('#tpyzm').val();
        tpyzm = trimStr(tpyzm);
        if(tpyzm == '')
        {
            showTip('请填写图片验证码');
            return false;
        }

        $.post('/Index/index/send',{mobile:tel},function (data) {
            showTip(data.msg);
        })
    }

    function dosubmit1()
    {

        var tel = $('#phoneNumber').val();
        tel = trimStr(tel);
        console.log(tel)

        if(tel.length!=11)
        {
            showTip('请输入有效的手机号码！');
            return false;
        }
        if(tel == '')
        {
            showTip('请填写手机号');
            return false;
        }
        var name = $('#name').val();
        name = trimStr(name);
        if(name == '')
        {
            showTip('请填写姓名');
            return false;
        }
        var qq = $('#qq').val();
        qq = trimStr(qq);
        if(qq == '')
        {
            showTip('请填写QQ号');
            return false;
        }
        var zhimafen = $('#zhimafen').val();
        zhimafen = trimStr(zhimafen);
        if(zhimafen == '')
        {
            showTip('请填写芝麻分');
            return false;
        }

        var weixin = $('#weixin').val();
        weixin = trimStr(weixin);
        if(weixin == '')
        {
            showTip('请填写微信');
            return false;
        }

        var tpyzm = $('#tpyzm').val();
        tpyzm = trimStr(tpyzm);
        if(tpyzm == '')
        {
            showTip('请填写图片验证码');
            return false;
        }

        var dxyzm = $('#dxyzm').val();
        dxyzm = trimStr(dxyzm);
        if(dxyzm == '')
        {
            showTip('请填写短信验证码');
            return false;
        }

        document.getElementById("am-form").submit();
    }

</script>


</body></html>